package main

import (
	"app001/socks5"
)

func main() {
	//serpack.Start()

	var propSocks51 socks5.PropSocks5

	propSocks51.Port = 8080
	propSocks51.MaxCoroutine = 8080
	socks5.InitSer(propSocks51)
	relList, server := socks5.Listen()
	if !relList {
		return
	}
	relList, client := socks5.GetClient(server)
	if !relList {
		return
	}
	target, err := socks5.Socks5Connect(client)
	if err != nil {
		return
	}
	socks5.Socks5Forward(client, target)

}
